package com.blog.model;

import java.io.Serializable;
import java.util.Date;

public class User extends BaseEntity {
//    private Integer id;

    private String username;

    private String password;

    private Short loginnum;

    private Date lastlogintime;

    private Short status;

    private static final long serialVersionUID = 1L;

//    public Integer getId() {
//        return id;
//    }
//
//    public void setId(Integer id) {
//        this.id = id;
//    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Short getLoginnum() {
        return loginnum;
    }

    public void setLoginnum(Short loginnum) {
        this.loginnum = loginnum;
    }

    public Date getLastlogintime() {
        return lastlogintime;
    }

    public void setLastlogintime(Date lastlogintime) {
        this.lastlogintime = lastlogintime;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }

//    @Override
//    public String toString() {
//        StringBuilder sb = new StringBuilder();
//        sb.append(getClass().getSimpleName());
//        sb.append(" [");
//        sb.append("Hash = ").append(hashCode());
//        sb.append(", id=").append(id);
//        sb.append(", username=").append(username);
//        sb.append(", password=").append(password);
//        sb.append(", loginnum=").append(loginnum);
//        sb.append(", lastlogintime=").append(lastlogintime);
//        sb.append(", status=").append(status);
//        sb.append(", serialVersionUID=").append(serialVersionUID);
//        sb.append("]");
//        return sb.toString();
//    }
}